import ajax from "../service/ajax.js";

export default {
    namespaced: true,  //允许使用命名空间
    state:{
        token:"",
        PlatfromUserAccountBean:[],
        curr:1,
        param:{name:"",comt:"",num:""},
      
    },
    mutations:{
        setPlatfromUserAccountBean(state,cutObj){
            state.PlatfromUserAccountBean=cutObj;
        },
        settoKen(state,token){
            state.token=token;
        }
    },
    actions:{
        async findByService(context){
            var platfomObj = await ajax.getSubmit("/project/comment/select",context.state.param);
            alert(JSON.stringify(platfomObj))
            context.commit("setPlatfromUserAccountBean",platfomObj);
        }
    }

}